﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BUS;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class DanhMucBUS
    {
        public static DataTable Ds_DanhMuc()
        {
            return DanhMucDAO.Ds_DanhMuc();
        }
        //Lay ten danh mcu
        public static string TenDanhMuc(int id)
        {
            return DanhMucDAO.TenDM(id);
        }
        //thêm danh mục
        public static int ThemDanhMuc(DanhMucDTO dm)
        {
            return DanhMucDAO.ThemDanhMuc(dm);
        }
        //kiem tra trùng
        public static int KiemTraTrung(string tendm)
        {
            return DanhMucDAO.KiemTraTrung(tendm);
        }
    }
}
